Dataset.prototype.onAfterDataChange = function(event, pageIndex)
{	
	if(this.id != 'jk_items')
		return;
	var sDs = getDataset("jk_items");
	var sumIndex = sDs.nameToIndex("amount")
	if(event.cellColIndex != sumIndex)
		return;
	var masterDs = getDataset("jk_jkzb"); 
	newSum = this.totalSum(["amount"]);
	masterDs.setValueAt(masterDs.getSelectedIndex(),masterDs.nameToIndex("ybje"),newSum);
}